platform:ios,'9.0'
inhibit_all_warnings!
use_frameworks!

def pods
    pod 'SnapKit', '~> 4.2.0'
    pod 'Alamofire'
    pod 'ObjectMapper', '~> 3.4.2'
    pod 'AlamofireObjectMapper'
    pod 'Ji'
    pod 'DrawerController', '~> 4.0.0'
    pod 'Kingfisher', '~>4.10.0'
    pod 'KeychainSwift'
    pod 'KVOController'
    pod 'YYText'
    pod 'FXBlurView'
    pod 'SVProgressHUD'
    pod 'MJRefresh'
    pod 'CXSwipeGestureRecognizer'
    pod '1PasswordExtension'
    pod 'Shimmer'
    pod 'FDFullscreenPopGesture'
    pod 'Moya', '~> 11.0.2'
    pod 'Moya/RxSwift'
    pod 'SwiftyJSON', '~> 5.0.0'
    pod 'Fabric'
    pod 'Crashlytics'
    pod 'DeviceKit', '~> 2.0.0'
end

target 'V2ex-Swift' do
    pods
end

# 可以对相应的框架指定版本
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
       config.build_settings['SWIFT_VERSION'] = '4.2'
      if config.build_settings['PRODUCT_NAME'] == 'DrawerController'
        config.build_settings['SWIFT_VERSION'] = '4.0'
      end

    end
  end
end
